home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / Mesa-1.2.1 / src-tk / Makefile < prev    next >
Encoding:
Makefile  |  1995-07-05  |  1.9 KB  |  90 lines

  1. # Makefile for tk toolkit
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  1.2.1
  5. # Copyright (C) 1995  Brian Paul  (brianp@ssec.wisc.edu)
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # $Id: Makefile,v 1.5 1995/06/21 15:57:46 brianp Exp $
  23.  
  24. # $Log: Makefile,v $
  25. # Revision 1.5  1995/06/21  15:57:46  brianp
  26. # added IRIX 5 DSO and Linux ELF shared library targets
  27. # Release 1.2.1
  28. #
  29. # Revision 1.4  1995/05/22  17:00:00  brianp
  30. # Release 1.2
  31. #
  32. # Revision 1.3  1995/05/15  16:15:30  brianp
  33. # clean up and reorganize
  34. #
  35. # Revision 1.2  1995/04/17  13:44:32  brianp
  36. # added VPATH definition
  37. #
  38. # Revision 1.1  1995/03/26  15:13:07  brianp
  39. # Initial revision
  40. #
  41.  
  42.  
  43. ##### MACROS #####
  44.  
  45. VPATH = RCS
  46.  
  47. INCDIR = ../include
  48. LIBDIR = ../lib
  49.  
  50. SOURCES = cursor.c event.c font.c getset.c image.c shapes.c window.c
  51. OBJECTS = $(SOURCES:.c=.o)
  52.  
  53.  
  54.  
  55. ##### RULES #####
  56.  
  57. $(OBJECTS): $(SOURCES)
  58.  
  59. .c.o:
  60.     $(CC) -c $(CFLAGS) $<
  61.  
  62.  
  63.  
  64. ##### TARGETS #####
  65.  
  66. default:
  67.     @echo "Specify a target configuration"
  68.  
  69. clean:
  70.     -rm *.o *~
  71.  
  72. targets: $(LIBDIR)/libMesatk.a
  73.  
  74. $(LIBDIR)/libMesatk.a: $(OBJECTS)
  75.     ar $(ARFLAGS) $@ $(OBJECTS)
  76.     $(RANLIB) $@
  77.  
  78. # Make SGI IRIX 5.x DSO:
  79. $(LIBDIR)/libMesatk.so: $(OBJECTS)
  80.     ld -shared -all $(OBJECTS) -o $@
  81.  
  82. # Make Linux ELF shared library:
  83. $(LIBDIR)/libMesatk.so.1: $(OBJECTS)
  84.     gcc -shared $(OBJECTS) -o $@
  85.  
  86.  
  87. include ../Make-config
  88.  
  89.  
  90.